//
//  ExchangeMakeSurePopView.m
//  ZDB
//
//  Created by 微笑吧阳光 on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ExchangeMakeSurePopView.h"

@implementation ExchangeMakeSurePopView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


-(void)setInfoDicc:(NSDictionary *)infoDicc{
    
    _infoDicc = infoDicc;
    
    
    [self.coverImage sd_setImageWithURL:[NSURL URLWithString:[infoDicc jsonString:@"goodsUrl"]] placeholderImage:CoverPlaceHolderImage];
    self.jifenLab.text = [NSString stringWithFormat:@"%ld积分/件",[infoDicc jsonInteger:@"integral"]];
    self.moneyLab.text =[infoDicc jsonString:@"goodsName"];
    
    
    NSDictionary * adsDicc = [infoDicc jsonDict:@"addressInfo"];
    if (!kDictIsEmpty(adsDicc) && adsDicc.allKeys.count >0) {
        self.infoLab.text = [NSString stringWithFormat:@"%@ %ld",[adsDicc jsonString:@"name"],[adsDicc jsonInteger:@"tel"]];
        self.dizhiLab.text = [adsDicc jsonString:@"address"];
    }
    

}
@end
